$OpenBSD: patch-intern_guardedalloc_intern_mallocn_intern_h,v 1.3 2014/11/04 06:02:40 brad Exp $

Don't use malloc.h header on OpenBSD.

--- intern/guardedalloc/intern/mallocn_intern.h.orig	Wed Jun 25 16:43:52 2014
+++ intern/guardedalloc/intern/mallocn_intern.h	Sun Oct 19 01:17:43 2014
@@ -56,6 +56,8 @@
 #  define HAVE_MALLOC_STATS
 #elif defined(__FreeBSD__)
 #  include <malloc_np.h>
+#elif defined(__OpenBSD__)
+/* nothing here */
 #elif defined(__APPLE__)
 #  include <malloc/malloc.h>
 #  define malloc_usable_size malloc_size
@@ -85,7 +87,8 @@
 #  define UNLIKELY(x)     (x)
 #endif
 
-#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__NetBSD__)
+#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__NetBSD__) && \
+	!defined(__OpenBSD__)
 // Needed for memalign on Linux and _aligned_alloc on Windows.
 #  ifdef FREE_WINDOWS
 /* make sure _aligned_malloc is included */
